<ul class="booking">
	<?php if($bookings) : ?>
		<?php foreach ($bookings as $key => $booking) : ?>
			<li class="<?php echo $booking->status == 0 ? 'new': '';  ?>">
				<div class="date"><?php echo Yii::app()->dateFormatter->format("dd/MM/yyyy H:mm", $booking->crdate); ?></div>
				<div class="author_l">
					<?php echo Yii::t('main','Review'); ?> : 
					<span class="p_review">
						<?php echo $booking->user->positive_review; ?> 
					</span> / 
					<span class="n_review">
						<?php echo $booking->user->negative_review; ?>
					</span>
				</div>
				<div class="check_date">
					<span class="check_in br5"><?php echo Yii::app()->dateFormatter->format("dd/MM/yyyy", $booking->check_in); ?></span>
					<span class="check_out br5"><?php echo Yii::app()->dateFormatter->format("dd/MM/yyyy", $booking->check_out); ?></span>
				</div>
				<div>
					<?php echo CHtml::encode($booking->first_name) . ' ' . CHtml::encode($booking->last_name); ?>
				</div>
				<p class="comment"><?php echo $booking->comment; ?></p>
			
				<p class="total_price"><?php echo CSelect::item($booking->object->currency_id,'Currency','short_name'); ?><?php echo $booking->total_price; ?></p>
				<div class="av">
					<a href="<?php echo Yii::app()->createUrl('Users/view', array('id'=>$booking->user->id));?>" title="<?php echo CHtml::encode($booking->user->full_name); ?>">
						<div class="br5">
							<?php echo $this->material_image($booking->user->id, $booking->user->avatar, '58', 'images/' . $booking->user->id); ?>
						</div>
						<span><?php echo CHtml::encode($booking->user->full_name); ?></span>
					</a>
				</div>
				<div class="arr"></div>
			</li>
		<?php endforeach ?>
	<?php else : ?>
			<li><div class="message error br3"><?php echo Yii::t('main','No Results'); ?></div></li>
	<?php endif ?>
</ul>